< previous page page_657 next page >

Page 657
z0677-01.gif
Figure 18.7
Folding up a cube.
Figure 18.9 shows the steps for folding up a hypercube. The bottom middle image in this figure shows the final cube folded only part of the way so that you can see how the last cube seems to disappear.
Example program Fold animates the hypercube folding process. It begins by creating eight cubes in X-Y-Z coordinate space. It then folds each into X-Y-Z-W space by rotating it around the appropriate plane.
In the first fold shown in Figure 18.9, the cube with the largest Y coordinates is folded. It is rotated around the plane that contains its bottom facethe face with the smallest Y coordinates. The corners defining this face are located at positions (1, 1, 1, 0), (1, 1, 1, 0), (1, 1, 1, 0), and (1, 1, 1, 0). The plane containing these points has Y = 1 and W = 0.
z0677-02.gif
Figure 18.8
Eight cubes you can fold up to make a hypercube.

 
< previous page page_657 next page >